using System.ComponentModel.DataAnnotations;

namespace S.M.SmartMedical.Domain.DTOs
{
    /// <summary>
    /// 用户登录DTO
    /// </summary>
    public class UserLoginDto
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        [StringLength(50, ErrorMessage = "用户名长度不能超过50个字符")]
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        [StringLength(255, ErrorMessage = "密码长度不能超过255个字符")]
        public string Password { get; set; } = string.Empty;
    }
}